Skip to content

Conversation

@mrubens
Copy link
Collaborator

@mrubens mrubens commented Dec 18, 2024

Screenshot 2024-12-18 at 3 26 23 PM


Important

Add configurable fuzzy diff matching feature with default off, including UI and state management updates.

  • Behavior:
    • Adds fuzzyMatchThreshold to Cline in Cline.ts, defaulting to 1.0 for exact matching.
    • Updates getDiffStrategy() in DiffStrategy.ts to use fuzzyMatchThreshold.
    • Modifies applyDiff() in search-replace.ts to incorporate fuzzyThreshold.
  • UI:
    • Adds a slider for fuzzy matching in SettingsView.tsx.
    • Sends fuzzyMatchThreshold changes to backend via WebviewMessage.
  • State Management:
    • Manages fuzzyMatchThreshold state in ExtensionStateContext.tsx.
    • Updates ClineProvider.ts to handle fuzzyMatchThreshold in state and initialization.
  • Tests:
    • Updates Cline.test.ts to test new constructor parameters and behavior.

This description was created by Ellipsis for 3aca5e8. It will automatically update as commits are pushed.

@changeset-bot
Copy link

changeset-bot bot commented Dec 18, 2024

🦋 Changeset detected

Latest commit: 3aca5e8

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
roo-cline Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@mrubens mrubens force-pushed the turn_off_fuzzy_matching branch 6 times, most recently from 6309285 to 9338d34 Compare December 18, 2024 20:19
@mrubens mrubens force-pushed the turn_off_fuzzy_matching branch from 9338d34 to 3aca5e8 Compare December 18, 2024 20:27
@mrubens mrubens merged commit 897e799 into main Dec 18, 2024
6 checks passed
@mrubens mrubens deleted the turn_off_fuzzy_matching branch December 18, 2024 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants